beforeLogin
Description
This event fires before any attempt is made to authenticate the user. A possible use for this event is to log out any user who might be logged in (use the A5WS_LogoutUser() function).
Fires before the user tries to login. Can be used to log out any existing logged in user (by executing the A5WS_LogoutUser() function)
Also fires if the UX component is reloaded.
Variables in the 'e' object include:
- e.flagUserWasAlreadyLoggedIn
If the user was already logged in when the page was initially loaded, this flag is .t.
- e.tmpl
Definition of the UX component
Your event handler can set
- e.javascript
Any Javascript you want to execute
- e.rtc.abort
Set to .f. - will allow you prevent the user from logging in.